﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CalculatorServices.calculatorservice;

namespace CalculatorServices
{
    class Program
    {
        static void Main(string[] args)
        {
            using (CalculatorServiceClient proxy = new CalculatorServiceClient())
            {
                Console.WriteLine("输入第一个算数");
                int count1 = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("输入第二个算数");
                int conut2 = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("x + y = {2} when x = {0} and y = {1}", count1, conut2, proxy.Add(count1, conut2));
                Console.WriteLine("x - y = {2} when x = {0} and y = {1}", count1, conut2, proxy.Subtract(count1, conut2));
                Console.WriteLine("x * y = {2} when x = {0} and y = {1}", count1, conut2, proxy.Multiply(count1, conut2));
                Console.WriteLine("x / y = {2} when x = {0} and y = {1}", count1, conut2, proxy.Divide(count1, conut2));
                Console.ReadLine();
            }

        }
    }
}
